package javabase.desginpattern.structure.composite;

/**
 * @author fance
 * @date 18-4-28 下午1:34
 */
public class MarketJoin extends Market {
    public MarketJoin(String s) {
        this.name = s;
    }

    @Override
    public void add(Market m) {

    }

    @Override
    public void remove(Market m) {

    }

    @Override
    public void payByCard() {
        System.out.println(name + " 消费,积分已累加入该会员卡");
    }


}
